package com.itfreer.data.metadata.entity;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 类功能说明 定义表结构实体
 */
@DatabaseTable(tableName = "metadata")
public class MetadataEntity {
    /**
     * 外建，元数据ID值
     */
    @DatabaseField(columnName = "mid", useGetSet = true, width = 50)
    protected String mid;

    /**
     * 元数据信息ID
     * 主键
     */
    @DatabaseField(columnName = "id", useGetSet = true, width = 50)
    protected String id;

    /**
     * 排序值
     */
    @DatabaseField(columnName = "order", useGetSet = true, width = 10)
    protected Integer order;

    /**
     * 字段名称
     */
    @DatabaseField(columnName = "name", useGetSet = true, width = 50)
    protected String name;

    /**
     * 字段别名
     */
    @DatabaseField(columnName = "aliasName", useGetSet = true, width = 50)
    protected String aliasName;

    /**
     * 字段类型
     */
    @DatabaseField(columnName = "dataType", useGetSet = true, width = 50)
    protected String dataType;

    /**
     * 字段类型名称
     */
    @DatabaseField(columnName = "dataTypeName", useGetSet = true, width = 50)
    protected String dataTypeName;

    /**
     * 是否是主键
     */
    @DatabaseField(columnName = "key", useGetSet = true, width = 2)
    protected Boolean key;

    /**
     * 是否是自动增值列
     */
    @DatabaseField(columnName = "auto", useGetSet = true, width = 2)
    protected Boolean auto;

    /**
     * 是否可以为空
     */
    @DatabaseField(columnName = "allowNull", useGetSet = true, width = 2)
    protected Boolean allowNull;

    /**
     * 是否可以显示
     */
    @DatabaseField(columnName = "canShow", useGetSet = true, width = 2)
    protected Boolean canShow;

    /**
     * 长度
     */
    @DatabaseField(columnName = "maxlen", useGetSet = true, width = 10)
    protected Integer maxlen;

    /**
     * 小数位长度
     */
    @DatabaseField(columnName = "decimaldigits", useGetSet = true, width = 10)
    protected Double decimaldigits;

    /**
     * 默认值
     */
    @DatabaseField(columnName = "defaultValue", useGetSet = true, width = 50)
    protected String defaultValue;

    /**
     * 字典域
     */
    @DatabaseField(columnName = "dictionaryName", useGetSet = true, width = 50)
    protected String dictionaryName;

    public String getMid() {
        return mid;
    }

    public void setMid(String mid) {
        this.mid = mid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAliasName() {
        return aliasName;
    }

    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public String getDataTypeName() {
        return dataTypeName;
    }

    public void setDataTypeName(String dataTypeName) {
        this.dataTypeName = dataTypeName;
    }

    public Boolean getKey() {
        return key;
    }

    public void setKey(Boolean isKey) {
        this.key = isKey;
    }

    public Boolean getAuto() {
        return auto;
    }

    public void setAuto(Boolean isAuto) {
        this.auto = isAuto;
    }

    public Boolean getAllowNull() {
        return allowNull;
    }

    public void setAllowNull(Boolean allowNull) {
        this.allowNull = allowNull;
    }

    public Integer getMaxlen() {
        return maxlen;
    }

    public void setMaxlen(Integer maxlen) {
        this.maxlen = maxlen;
    }

    public Double getDecimaldigits() {
        return decimaldigits;
    }

    public void setDecimaldigits(Double decimaldigits) {
        this.decimaldigits = decimaldigits;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public String getDictionaryName() {
        return dictionaryName;
    }

    public void setDictionaryName(String dictionaryName) {
        this.dictionaryName = dictionaryName;
    }

    public Boolean getCanShow() {
        return canShow;
    }

    public void setCanShow(Boolean canShow) {
        this.canShow = canShow;
    }
}